home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Programming standard C.
- Date: 26 Mar 1996 22:06 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <26MAR199622065672@erich.triumf.ca>
- References: <4j9pji$l3a@news.xs4all.nl>
- NNTP-Posting-Host: ftp.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4j9pji$l3a@news.xs4all.nl>, mamoman@xs1.xs4all.nl (Martin Moerman) writes...
- >
- >Hello all,
- >
- >I am trying to write standard C, so that my sources can be used on
- >different systems (LINUX, Sparc etc..)..
- >
- >The normal stuff works (printf etc)..
- >But I want to do a clear screen, how can I difine that under standard C..
-
- #ifdef __TURBOC__
- clrscr();
- #ifdef __MSC__
- /* something else */
- #ifdef _UNIX_
- /* still another....*/
-
- You can't do "fancy" screen work in ANSI standard C. The curses library is
- widely recommended for this job under unix, and a version of curses is
- apparently also available for DOS, so it, although not "standard" might be the
- most portable solution.
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
-
-